import request from './request'

// 上传
export const uploadAvatar = (params) =>
  request.post('/infra/file/upload', params, {
    headers: { 'Content-Type': 'multipart/form-data' },
})

//根据行驶证获取信息
export const getCarInfo = (params) => request.post(`/erp/owner/import-license`, params, {
  headers: { 'Content-Type': 'multipart/form-data' },
})

//根据姓名和手机号获取信息
export const getOwnerInfo = (params) => request.get('/erp/owner/check', {params})

//提交信息
export const submitInfo = (params) => request.post('/erp/owner/submitInfo', params)

//创建保单
export const createPolicy = (params) => request.post('/erp/owner/create', params)

//获取保单信息
export const getPolicyInfo = (params) => request.get('/erp/owner-item/get-ownerId', {params})
